package com.luluteam.pushlib.model;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Administrator on 2018/1/2 0002.
 */

public class TargetParams implements Parcelable {

    private String value;
    private String key;

    public void setValue(String value) {
        this.value = value;
    }

    public String getValue() {
        return value;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getKey() {
        return key;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeString(value);
        parcel.writeString(key);

    }

    public static final Parcelable.Creator<TargetParams> CREATOR = new Creator<TargetParams>() {
        @Override
        public TargetParams[] newArray(int size) {
            return new TargetParams[size];
        }

        @Override
        public TargetParams createFromParcel(Parcel in) {
            return new TargetParams(in);
        }
    };

    public TargetParams(Parcel in) {
        value = in.readString();
        key = in.readString();
    }

    @Override
    public String toString() {
        return "TargetParams{" +
                "value='" + value + '\'' +
                ", key='" + key + '\'' +
                '}';
    }
}